//
//  DXWNewViewController.m
//  BuDeJie
//
//  Created by 淡馨慰 on 16/7/24.
//  Copyright © 2016年 淡馨慰. All rights reserved.
//

#import "DXWNewViewController.h"
#import "DXWTagViewController.h"

@interface DXWNewViewController ()

@end

@implementation DXWNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    
    //1.设置导航条按钮
    [self setupNavigationBar];
    
}

- (void)setupNavigationBar
{
    //1.1设置左侧按钮
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem barButtonItemWithImage:[UIImage imageNamed:@"MainTagSubIcon"] highlightImage:[UIImage imageNamed:@"MainTagSubIconClick"] target:self action:@selector(tagBtnClick)];
    
    //1.2设置中间标题图
    self.navigationItem.titleView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"MainTitle"]];
    
}
//监听左侧按钮点击 --- 跳转推荐标签界面
- (void)tagBtnClick
{
    NSLog(@"点击了标签按钮");
    DXWTagViewController *tagVC = [[DXWTagViewController alloc]init];
    tagVC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:tagVC animated:YES];
    
}

@end
